use rapid::{http::Method, Server};

#[async_std::main]
async fn main() -> anyhow::Result<()> {
    femme::start();

    let mut rapid = Server::new();
    rapid
        .at("/")
        .method(Method::Get, |_| async { Ok("hello, world!") })
        .at("test")
        .method(Method::Get, |_| async { Ok("hello, test!") });

    rapid.run().await?;
    Ok(())
}
